package com.contory.ssn_lgnd.framework.math;

public class Rectangle {
    public final Vector2 lowerLeft;
    public float width, height;
    
    public Rectangle(float lowerLeftX, float lowerLeftY, float width, float height) {
        this.lowerLeft = new Vector2(lowerLeftX, lowerLeftY);
        this.width = width;
        this.height = height;
    }
    
    public Rectangle(){
    	this.lowerLeft = new Vector2(0, 0);
    	width = height = 0.0f;
    }
    
    public void setLowerLeft(Vector2 other){
    	lowerLeft.x = other.x;
    	lowerLeft.y = other.y;
    }
    
    public void setLowerLeft(float x, float y){
    	lowerLeft.x = x;
    	lowerLeft.y = y;
    }
    
    public void setWidthHeight(float w, float h){
    	width = w;
    	height = h;
    }
}
